package cn.gov.msa.util;

import org.apache.log4j.Logger;

import cn.gov.msa.service.ApplyService;

public class AmanuensisThread implements Runnable {
 
	private Logger logger = Logger.getLogger(AmanuensisThread.class);
	private String applyno;
	private  ApplyService applyService ;
	public AmanuensisThread(String applyno, ApplyService applyService ) {
		this.applyno = applyno;
		this.applyService = applyService;
	}
	
	@Override
	public void run() {
		//保存文书
    	try {
			applyService.saveAmanuensis(applyno, null);
		} catch (Exception e) {
			logger.error("文件生成异常",e);
			e.printStackTrace();
		}
	}

}
